package site.zhangzhuo.learn_springboot.aop;

import org.springframework.stereotype.Service;

@Service
public class MyServiceImpl implements MyService {
    @Override
    public String performAction(String input) {
        System.out.println("Performing action with: " + input);
        if ("error".equals(input)) {
            throw new RuntimeException("Simulated error");
        }
        return "Processed " + input;
    }
}
